package com.youdu.vuandroidadsdk.okhttp.exception;


/**
 * @Title:OkHttpException
 * @Package:com.youdu.vuandroidadsdk.okhttp.exception
 * @Description:自定义异常类,返回ecode,emsg到业务层
 * @Auther:YJH
 * @Email:yuannunhua@gmail.com
 * @Date:2018/7/2313:53
 */
public class OkHttpException extends Exception {
	private static final long serialVersionUID = 1L;

	/**
	 * the server return code
	 */
	private int ecode;

	/**
	 * the server return error message
	 */
	private Object emsg;

	public OkHttpException(int ecode, Object emsg) {
		this.ecode = ecode;
		this.emsg = emsg;
	}

	public int getEcode() {
		return ecode;
	}

	public Object getEmsg() {
		return emsg;
	}
}